package com.niuwa.p2p.dao.channel;

import java.util.List;

import com.niuwa.p2p.dao.MyBatisDao;
import com.niuwa.p2p.entity.channel.CorpManager;
import com.niuwa.p2p.entity.channel.ManagerRelativeCorp;
import com.niuwa.p2p.entity.channel.ShareHolder;
import com.niuwa.p2p.vo.channel.ChannelInfoCheckVo;

@MyBatisDao
public interface ChannelInfoCheckDao {

	List<CorpManager> selectManagerByCorpCode(String corpCode);

	List<CorpManager> getCorpManager(ManagerRelativeCorp managerRelativeCorp);

	List<ShareHolder> selectShareHolderByCorpCode(String corpCode);

	ChannelInfoCheckVo selectCorpLegalMan(String corpCode);

	ChannelInfoCheckVo selectCorpGeneralManager(String corpCode);

	ChannelInfoCheckVo selectCorp(String corpCode);

	List<ChannelInfoCheckVo> selectPersonShareholder(String corpCode);
	
	List<ChannelInfoCheckVo> selectCorpShareholder(String corpCode);

	/**
	 * 选择在黑名单中的法人或者总经理
	 * 
	 * @param corpCode
	 * @return
	 */
	List<ChannelInfoCheckVo> selectBlackListManager(String corpCode);

	/**
	 * 选择在黑名单中的自然人股东
	 * 
	 * @param corpCode
	 * @return
	 */
	List<ChannelInfoCheckVo> selectBlackListPersonShareholder(String corpCode);

	/**
	 * 选择在黑名单中的法人股东
	 * 
	 * @param corpCode
	 * @return
	 */
	List<ChannelInfoCheckVo> selectBlackListCorpShareholder(String corpCode);
	
	int checkBlackList(ChannelInfoCheckVo channelInfoCheckVo);
}
